import { createRouter, createWebHashHistory } from 'vue-router'

const Home=()=>import('@/views/home/Home.vue')
const Cart=()=>import('@/views/cart/Cart.vue')
const Profile=()=>import('@/views/profile/Profile.vue')
const Category=()=>import('@/views/category/Category.vue')
const Detail=()=>import('@/views/detail/Details.vue')
const Login=()=>import('@/views/login/Login.vue')

const routes = [
   {
		path:'',
		redirect:'/home'
  },
  {
		path:'/details',
		component:Detail
  },
  {
		path:'/cart',
		component:Cart
	},
	{
		path:'/login',
		component:Login
	},
	{
		path:'/profile',
		component:Profile
	},
	{
		path:'/category',
		component:Category
	},
	{
		path:'/home',
		component:Home
	},
    
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
